<?php


namespace seecms\lib\builder\toolbar;

use seecms\lib\builder\modal\Confirm;
use seecms\SeeLang;

class DeleteToolbar extends Toolbar
{
    protected $text = 'delete';

    protected $url = 'delete';

    protected $style = 'layui-btn layui-btn-danger layui-btn-sm';

    protected $icon = 'layui-icon layui-icon-delete';

    public function getConfirm(): Confirm
    {
        return $this->confirm ?: Confirm::init(SeeLang::dialog('miss_tips'), SeeLang::dialog('confirm_delete'));
    }
}